import { httpData } from '@/utils/types';
import { post, get } from '@/utils/request';
export default {
    // 生产订单下拉
    orderPullDown: (data?: httpData) => {
        return get('/order/production/list/app/pullDown', data);
    },

    // 生产订单下拉
    orderProductionDetail: (data?: httpData) => {
        return get('/order/production/detail', data);
    },

    // 仓储和气瓶关联表新增编辑
    cylinderRelateSave: (data?: httpData) => {
        return post('/warehouse/cylinder/relate/save', data);
    },

    // 仓储管理-空瓶入库扫码-新瓶入库erp出库单下拉
    warehouseEnterEmptyErpOutList: (data?: httpData) => {
        return get('/warehouse/enter/empty/erp/out/list', data);
    },
    //*********************************************入库*********************************************** */
    // 仓储管理-空瓶入库分页
    enterEmptyList: (data?: httpData) => {
        return get('/warehouse/enter/empty/list', data);
    },

    // 仓储管理-空瓶入库新增编辑
    enterEmptySave: (data?: httpData) => {
        return post('/warehouse/enter/empty/save', data);
    },

    // 仓储管理-空瓶入库删除
    enterEmptyDeleteBatch: (data?: httpData) => {
        return post('/warehouse/enter/empty/deleteBatch', data);
    },

    // 仓储管理-空瓶入库详情
    enterEmptyDetail: (data?: httpData) => {
        return get('/warehouse/enter/empty/detail', data);
    },

    // 仓储管理-空瓶入库扫码
    enterEmptyScan: (data?: httpData) => {
        return get('/warehouse/enter/empty/scan', data);
    },

    // 仓储管理-空瓶入库结束入库
    enterEmptyEnd: (data?: httpData) => {
        return post('/warehouse/enter/empty/end', data);
    },

    // 仓储管理-仓储和气瓶关联表删除
    cylinderRelateDelete: (data?: httpData) => {
        return post('/warehouse/cylinder/relate/delete', data);
    },
    //*********************************************空瓶退库申请*********************************************** */
    // 仓储管理-空瓶入库-车间空瓶退库新增编辑
    workshopEmptyReturnSave: (data?: httpData) => {
        return post('/warehouse/enter/workshop/empty/return/save', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库扫条码号
    workshopEmptyReturnScanCode: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/scanCode', data);
    },
    //*********************************************空瓶退库*********************************************** */
    // 仓储管理-空瓶入库-车间空瓶退库分页
    workshopEmptyReturnList: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/list', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情
    workshopEmptyReturnDetail: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/detail', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情扫条码校验
    workshopEmptyReturnDetailScanCheck: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/detail/scanCheck', data);
    },

    // 仓储管理-空瓶入库-车间空瓶退库详情提交
    workshopEmptyReturnDetailUpdateStatus: (data?: httpData) => {
        return post('/warehouse/enter/workshop/empty/return/detail/updateStatus', data);
    },

    // 获取可退库气瓶
    enterWorkshopEmptyReturnDetail: (data?: httpData) => {
        return get('/warehouse/enter/workshop/empty/return/detail', data);
    },
    //*********************************************空瓶报检*********************************************** */
    // 仓储管理-报检单-扫码
    warehouseEnterInspectionScan: (data?: httpData) => {
        return get('/warehouse/enter/inspection/scan', data);
    },

    // 仓储管理-报检单新增编辑
    warehouseEnterInspectionSave: (data?: httpData) => {
        return post('/warehouse/enter/inspection/save', data);
    },

    // ************************ 其他物料入库 ************************
    // 扫码
    otherMaterialScan: (data?: httpData) => {
        return get('/warehouse/enter/full/other/scan', data);
    },

    // 新增/编辑
    otherMaterialSave: (data?: httpData) => {
        return post('/warehouse/enter/full/other/detailSave', data);
    },
};
